package com.zrulin.findcomrade.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @author zrulin
 * @create 2021-04-21 21:56
 */
@Data
@ToString
@ApiModel("返回信息")
public class Msg {
    @ApiModelProperty("返回状态码")
    private Integer status;
    @ApiModelProperty("返回数据对象")
    private Object data;
    @ApiModelProperty("错误信息提示")
    private String msg;
    @ApiModelProperty("令牌")
    private String token;

    public Msg(Integer status, String token) {
        this.status = status;
        this.token = token;
    }

    public Msg(Integer status, String msg, String token) {
        this.status = status;
        this.msg = msg;
        this.token = token;
    }

    public Msg(Integer status, Object data, String token) {
        this.status = status;
        this.data = data;
        this.token = token;
    }

}
